package com.shilei;

import java.awt.*;
import java.io.Serializable;

/**
 * @description: 游戏抽象类   所有的父类
 * @author: 81271
 * @date: 2020-04-15 20:08
 */
public abstract class GameObject implements Serializable {
    public int x;
    public int y;

    public abstract void paint(Graphics g);

    public abstract int getHeight();

    public abstract int getWidth();

}
